package com.pubinfo.passbook.data.controller;

import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.data.service.TFtpPasswordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "ftpPassword")
@Api(tags = "影像ftp密码管理")
@Slf4j
public class FtpPasswordController {

    @Autowired
    TFtpPasswordService tFtpPasswordService;

    @PostMapping("/updatePassword")
    @ApiOperation(value = "修改ftp密码")
    public JsonResult<Boolean> updatePassword(String password) {
        return JsonResult.success(tFtpPasswordService.updatePassword(password));
    }
}
